﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DAOTicketReservationSystem;

namespace ManageEvents
{
    public partial class FormAddEdit : Form
    {
        private bool isLocation = false;
        private bool isCategory = false;
        private bool forAdd = false;
        private bool forEdit = false;
        private string labelText = "";
        private string buttonText = "";

        public string ButtonText
        {
            get { return buttonText; }
            set { buttonText = value; }
        }

        public string LabelText
        {
            get { return labelText; }
            set { labelText = value; }
        }

        public bool IsLocation
        {
            get { return isLocation; }
            set { isLocation = value; }
        }
        

        public bool IsCategory
        {
            get { return isCategory; }
            set { isCategory = value; }
        }
        

        public bool ForAdd
        {
            get { return forAdd; }
            set { forAdd = value; }
        }
        

        public bool ForEdit
        {
            get { return forEdit; }
            set { forEdit = value; }
        }

        public FormAddEdit()
        {
            InitializeComponent();
        }

        private void FormAddEdit_Load(object sender, EventArgs e)
        {
            label.Text = this.labelText;
            buttonSaveAdd.Text = this.buttonText;
        }

        private void buttonCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void buttonSaveAdd_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            if (this.ForAdd)
            {
                if (this.IsCategory == true)
                {
                    
                }
            }
        }
    }
}
